package com.ad.pet.app.shopcar.confirm;

import com.ad.pet.common.structure.mvp.AbsView;
import com.ad.pet.common.structure.mvp.BasePresenter;
import com.ad.pet.models.remote.account.Banlance;
import com.ad.pet.models.remote.account.UserBuyReturn;
import com.ad.pet.models.remote.account.order.PayCompleted;
import com.ad.pet.models.remote.account.order.SignCheck;
import com.ad.pet.models.remote.cart.BigShipingw;
import com.ad.pet.models.remote.cart.Coupons;
import com.ad.pet.models.remote.mall.Counpous;

import java.util.List;

/**
 * Created by SEELE on 2018/5/2.
 */

public interface ConfirmOrderContracts  {

    interface Presenter extends BasePresenter<View> {

        void getCoupons(String state,String page,String pageSize);
        void checkCoupons(String code);
        void get_user_balance();
        void confirmOrder(String cartIds,String addressId,String shipingId,String banlacne,String redEv,String freight,String couiD);
        void getShipingWays(String number,String price);
        void paymentBalance(String order_sn,String balance_sign,String balance,String balance_red_envele);
        void checkIsSign();
        void daySign();
        void shareH5Url();
        void get_user_buy_return();


    }

    interface View extends AbsView {
        void getCouponsSuccess(List<Counpous> coupons);
        void checkCouponsSuccess(Coupons coupons);
        void confirmOrderSuccess(PayCompleted shop);
        void getUserBanceSuccess(Banlance banlance);
        void getShipingWaysSuccess(BigShipingw shippingWay);
        void paymentBalanceSuccess(int toPay);
        void checkIsSignSuccess(SignCheck signCheck);
        void daySignSuccess(SignCheck signCheck);
        void sharH5UrlSuccess(SignCheck signCheck);
        void get_user_buy_return_success(UserBuyReturn userBuyReturn);
    }
}
